<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>TP1-Algo: Référence du fichier TesteurPiece.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">TP1-Algo
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Généré par Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="namespaces.html"><span>Espaces&#160;de&#160;nommage</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_testeur_piece_8cpp.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Fonctions</a>  </div>
  <div class="headertitle">
<div class="title">Référence du fichier TesteurPiece.cpp</div>  </div>
</div><!--header-->
<div class="contents">

<p>Ce fichier contient les tests unitaires de la classe Piece.  
<a href="#details">Plus de détails...</a></p>
<div class="textblock"><code>#include &lt;gtest/gtest.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="_piece_8h_source.html">Piece.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Graphe des dépendances par inclusion de TesteurPiece.cpp:</div>
<div class="dyncontent">
<div class="center"><img src="_testeur_piece_8cpp__incl.png" border="0" usemap="#_testeur_piece_8cpp" alt=""/></div>
<map name="_testeur_piece_8cpp" id="_testeur_piece_8cpp">
</map>
</div>
</div>
<p><a href="_testeur_piece_8cpp_source.html">Aller au code source de ce fichier.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Fonctions</h2></td></tr>
<tr class="memitem:aa63af32798a5227d4dddb878743677da"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_testeur_piece_8cpp.html#aa63af32798a5227d4dddb878743677da">TEST</a> (<a class="el" href="class_t_p1_1_1_piece.html">Piece</a>, PieceConstructeurDefaut_casNormal_PieceSansNom)</td></tr>
<tr class="separator:aa63af32798a5227d4dddb878743677da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53dc0bbe6a9a2f1ab86f6ca583e217e0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_testeur_piece_8cpp.html#a53dc0bbe6a9a2f1ab86f6ca583e217e0">TEST</a> (<a class="el" href="class_t_p1_1_1_piece.html">Piece</a>, PieceConstructeurString_casNormal_PieceAvecLeBonNom)</td></tr>
<tr class="separator:a53dc0bbe6a9a2f1ab86f6ca583e217e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad040c9ae43254d7ff4ad7c8570e496d7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_testeur_piece_8cpp.html#ad040c9ae43254d7ff4ad7c8570e496d7">TEST</a> (<a class="el" href="class_t_p1_1_1_piece.html">Piece</a>, setParcourue_casNormal_ParcourueEstEgalATrue)</td></tr>
<tr class="separator:ad040c9ae43254d7ff4ad7c8570e496d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4dafbe9a80adc8787545d68518e06ea4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_testeur_piece_8cpp.html#a4dafbe9a80adc8787545d68518e06ea4">TEST</a> (<a class="el" href="class_t_p1_1_1_piece.html">Piece</a>, setParcourue_deuxModifications_ParcourueEstEgalAFalse)</td></tr>
<tr class="separator:a4dafbe9a80adc8787545d68518e06ea4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12e1f03f80d437f48ba480c79bf70934"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_testeur_piece_8cpp.html#a12e1f03f80d437f48ba480c79bf70934">TEST</a> (<a class="el" href="class_t_p1_1_1_piece.html">Piece</a>, PieceConstructeurCopie_casNormal_LesDeuxPiecesOntLeMemeNom)</td></tr>
<tr class="separator:a12e1f03f80d437f48ba480c79bf70934"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f512e5ea5b9540b069c33eadea8aeaa"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_testeur_piece_8cpp.html#a2f512e5ea5b9540b069c33eadea8aeaa">TEST</a> (<a class="el" href="class_t_p1_1_1_piece.html">Piece</a>, PieceConstructeurCopie_casNormal_LesDeuxPiecesOntLaMemeValeurParcourue)</td></tr>
<tr class="separator:a2f512e5ea5b9540b069c33eadea8aeaa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92e7dc0b7070d31ac4907709523b74f9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_testeur_piece_8cpp.html#a92e7dc0b7070d31ac4907709523b74f9">TEST</a> (<a class="el" href="class_t_p1_1_1_piece.html">Piece</a>, ajoutePorte_ajouterUneSeulePorte_LaPorteEstDansLaListeDePortes)</td></tr>
<tr class="separator:a92e7dc0b7070d31ac4907709523b74f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Description détaillée</h2>
<div class="textblock"><p>Ce fichier contient les tests unitaires de la classe Piece. </p>
<dl class="section author"><dt>Auteur</dt><dd>Pierre-Marc Levasseur </dd></dl>
<dl class="section date"><dt>Date</dt><dd>juin 2014 </dd></dl>

<p>Définition dans le fichier <a class="el" href="_testeur_piece_8cpp_source.html">TesteurPiece.cpp</a>.</p>
</div><h2 class="groupheader">Documentation des fonctions</h2>
<a class="anchor" id="aa63af32798a5227d4dddb878743677da"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TEST </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_p1_1_1_piece.html">Piece</a>&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PieceConstructeurDefaut_casNormal_PieceSansNom&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Définition à la ligne <a class="el" href="_testeur_piece_8cpp_source.html#l00015">15</a> du fichier <a class="el" href="_testeur_piece_8cpp_source.html">TesteurPiece.cpp</a>.</p>

<p>Références <a class="el" href="_piece_8cpp_source.html#l00070">TP1::Piece::getNom()</a>.</p>
<div class="fragment"><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;{</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    <a class="code" href="class_t_p1_1_1_piece.html">Piece</a> p;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    ASSERT_EQ(<span class="stringliteral">&quot;&quot;</span>, p.<a class="code" href="class_t_p1_1_1_piece.html#a413794f80b43ce7178088af478412867">getNom</a>());</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;}</div>
<div class="ttc" id="class_t_p1_1_1_piece_html_a413794f80b43ce7178088af478412867"><div class="ttname"><a href="class_t_p1_1_1_piece.html#a413794f80b43ce7178088af478412867">TP1::Piece::getNom</a></div><div class="ttdeci">const std::string &amp; getNom() const </div><div class="ttdoc">renvoi le nom de la pièce </div><div class="ttdef"><b>Definition:</b> <a href="_piece_8cpp_source.html#l00070">Piece.cpp:70</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html"><div class="ttname"><a href="class_t_p1_1_1_piece.html">TP1::Piece</a></div><div class="ttdoc">Piece dans un labyrinthe ayant un nom unique et une liste de portes qui partent de cette pièce...</div><div class="ttdef"><b>Definition:</b> <a href="_piece_8h_source.html#l00028">Piece.h:28</a></div></div>
</div><!-- fragment -->
<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_testeur_piece_8cpp_aa63af32798a5227d4dddb878743677da_cgraph.png" border="0" usemap="#_testeur_piece_8cpp_aa63af32798a5227d4dddb878743677da_cgraph" alt=""/></div>
<map name="_testeur_piece_8cpp_aa63af32798a5227d4dddb878743677da_cgraph" id="_testeur_piece_8cpp_aa63af32798a5227d4dddb878743677da_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a53dc0bbe6a9a2f1ab86f6ca583e217e0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TEST </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_p1_1_1_piece.html">Piece</a>&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PieceConstructeurString_casNormal_PieceAvecLeBonNom&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Définition à la ligne <a class="el" href="_testeur_piece_8cpp_source.html#l00022">22</a> du fichier <a class="el" href="_testeur_piece_8cpp_source.html">TesteurPiece.cpp</a>.</p>

<p>Références <a class="el" href="_piece_8cpp_source.html#l00070">TP1::Piece::getNom()</a>.</p>
<div class="fragment"><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;{</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    <a class="code" href="class_t_p1_1_1_piece.html">Piece</a> p(<span class="stringliteral">&quot;piece1&quot;</span>);</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    ASSERT_EQ(<span class="stringliteral">&quot;piece1&quot;</span>, p.getNom());</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;}</div>
<div class="ttc" id="class_t_p1_1_1_piece_html"><div class="ttname"><a href="class_t_p1_1_1_piece.html">TP1::Piece</a></div><div class="ttdoc">Piece dans un labyrinthe ayant un nom unique et une liste de portes qui partent de cette pièce...</div><div class="ttdef"><b>Definition:</b> <a href="_piece_8h_source.html#l00028">Piece.h:28</a></div></div>
</div><!-- fragment -->
<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_testeur_piece_8cpp_a53dc0bbe6a9a2f1ab86f6ca583e217e0_cgraph.png" border="0" usemap="#_testeur_piece_8cpp_a53dc0bbe6a9a2f1ab86f6ca583e217e0_cgraph" alt=""/></div>
<map name="_testeur_piece_8cpp_a53dc0bbe6a9a2f1ab86f6ca583e217e0_cgraph" id="_testeur_piece_8cpp_a53dc0bbe6a9a2f1ab86f6ca583e217e0_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad040c9ae43254d7ff4ad7c8570e496d7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TEST </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_p1_1_1_piece.html">Piece</a>&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">setParcourue_casNormal_ParcourueEstEgalATrue&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Définition à la ligne <a class="el" href="_testeur_piece_8cpp_source.html#l00029">29</a> du fichier <a class="el" href="_testeur_piece_8cpp_source.html">TesteurPiece.cpp</a>.</p>

<p>Références <a class="el" href="_piece_8cpp_source.html#l00090">TP1::Piece::getParcourue()</a>, et <a class="el" href="_piece_8cpp_source.html#l00080">TP1::Piece::setParcourue()</a>.</p>
<div class="fragment"><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;{</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <a class="code" href="class_t_p1_1_1_piece.html">Piece</a> p;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    p.<a class="code" href="class_t_p1_1_1_piece.html#a98c3d80561cf8cef97a703c845939af9">setParcourue</a>(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    ASSERT_EQ(<span class="keyword">true</span>, p.<a class="code" href="class_t_p1_1_1_piece.html#a53b001896020934e421b1a5042771dbf">getParcourue</a>());</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;}</div>
<div class="ttc" id="class_t_p1_1_1_piece_html"><div class="ttname"><a href="class_t_p1_1_1_piece.html">TP1::Piece</a></div><div class="ttdoc">Piece dans un labyrinthe ayant un nom unique et une liste de portes qui partent de cette pièce...</div><div class="ttdef"><b>Definition:</b> <a href="_piece_8h_source.html#l00028">Piece.h:28</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html_a98c3d80561cf8cef97a703c845939af9"><div class="ttname"><a href="class_t_p1_1_1_piece.html#a98c3d80561cf8cef97a703c845939af9">TP1::Piece::setParcourue</a></div><div class="ttdeci">void setParcourue(bool p)</div><div class="ttdoc">Pour initialiser l&#39;attibut parcourue à true ou false. </div><div class="ttdef"><b>Definition:</b> <a href="_piece_8cpp_source.html#l00080">Piece.cpp:80</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html_a53b001896020934e421b1a5042771dbf"><div class="ttname"><a href="class_t_p1_1_1_piece.html#a53b001896020934e421b1a5042771dbf">TP1::Piece::getParcourue</a></div><div class="ttdeci">bool getParcourue() const </div><div class="ttdoc">Permet d&#39;accéder à la donnée membre parcourue. </div><div class="ttdef"><b>Definition:</b> <a href="_piece_8cpp_source.html#l00090">Piece.cpp:90</a></div></div>
</div><!-- fragment -->
<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_testeur_piece_8cpp_ad040c9ae43254d7ff4ad7c8570e496d7_cgraph.png" border="0" usemap="#_testeur_piece_8cpp_ad040c9ae43254d7ff4ad7c8570e496d7_cgraph" alt=""/></div>
<map name="_testeur_piece_8cpp_ad040c9ae43254d7ff4ad7c8570e496d7_cgraph" id="_testeur_piece_8cpp_ad040c9ae43254d7ff4ad7c8570e496d7_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a4dafbe9a80adc8787545d68518e06ea4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TEST </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_p1_1_1_piece.html">Piece</a>&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">setParcourue_deuxModifications_ParcourueEstEgalAFalse&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Définition à la ligne <a class="el" href="_testeur_piece_8cpp_source.html#l00038">38</a> du fichier <a class="el" href="_testeur_piece_8cpp_source.html">TesteurPiece.cpp</a>.</p>

<p>Références <a class="el" href="_piece_8cpp_source.html#l00090">TP1::Piece::getParcourue()</a>, et <a class="el" href="_piece_8cpp_source.html#l00080">TP1::Piece::setParcourue()</a>.</p>
<div class="fragment"><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;{</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <a class="code" href="class_t_p1_1_1_piece.html">Piece</a> p;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    p.<a class="code" href="class_t_p1_1_1_piece.html#a98c3d80561cf8cef97a703c845939af9">setParcourue</a>(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    p.<a class="code" href="class_t_p1_1_1_piece.html#a98c3d80561cf8cef97a703c845939af9">setParcourue</a>(<span class="keyword">false</span>);</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    ASSERT_EQ(<span class="keyword">false</span>, p.<a class="code" href="class_t_p1_1_1_piece.html#a53b001896020934e421b1a5042771dbf">getParcourue</a>());</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;}</div>
<div class="ttc" id="class_t_p1_1_1_piece_html"><div class="ttname"><a href="class_t_p1_1_1_piece.html">TP1::Piece</a></div><div class="ttdoc">Piece dans un labyrinthe ayant un nom unique et une liste de portes qui partent de cette pièce...</div><div class="ttdef"><b>Definition:</b> <a href="_piece_8h_source.html#l00028">Piece.h:28</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html_a98c3d80561cf8cef97a703c845939af9"><div class="ttname"><a href="class_t_p1_1_1_piece.html#a98c3d80561cf8cef97a703c845939af9">TP1::Piece::setParcourue</a></div><div class="ttdeci">void setParcourue(bool p)</div><div class="ttdoc">Pour initialiser l&#39;attibut parcourue à true ou false. </div><div class="ttdef"><b>Definition:</b> <a href="_piece_8cpp_source.html#l00080">Piece.cpp:80</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html_a53b001896020934e421b1a5042771dbf"><div class="ttname"><a href="class_t_p1_1_1_piece.html#a53b001896020934e421b1a5042771dbf">TP1::Piece::getParcourue</a></div><div class="ttdeci">bool getParcourue() const </div><div class="ttdoc">Permet d&#39;accéder à la donnée membre parcourue. </div><div class="ttdef"><b>Definition:</b> <a href="_piece_8cpp_source.html#l00090">Piece.cpp:90</a></div></div>
</div><!-- fragment -->
<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_testeur_piece_8cpp_a4dafbe9a80adc8787545d68518e06ea4_cgraph.png" border="0" usemap="#_testeur_piece_8cpp_a4dafbe9a80adc8787545d68518e06ea4_cgraph" alt=""/></div>
<map name="_testeur_piece_8cpp_a4dafbe9a80adc8787545d68518e06ea4_cgraph" id="_testeur_piece_8cpp_a4dafbe9a80adc8787545d68518e06ea4_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a12e1f03f80d437f48ba480c79bf70934"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TEST </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_p1_1_1_piece.html">Piece</a>&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PieceConstructeurCopie_casNormal_LesDeuxPiecesOntLeMemeNom&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Définition à la ligne <a class="el" href="_testeur_piece_8cpp_source.html#l00048">48</a> du fichier <a class="el" href="_testeur_piece_8cpp_source.html">TesteurPiece.cpp</a>.</p>

<p>Références <a class="el" href="_piece_8cpp_source.html#l00070">TP1::Piece::getNom()</a>.</p>
<div class="fragment"><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;{</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <a class="code" href="class_t_p1_1_1_piece.html">Piece</a> p1(<span class="stringliteral">&quot;piece1&quot;</span>);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <a class="code" href="class_t_p1_1_1_piece.html">Piece</a> p2(p1);</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    ASSERT_EQ(p1.getNom(), p2.getNom());</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;}</div>
<div class="ttc" id="class_t_p1_1_1_piece_html"><div class="ttname"><a href="class_t_p1_1_1_piece.html">TP1::Piece</a></div><div class="ttdoc">Piece dans un labyrinthe ayant un nom unique et une liste de portes qui partent de cette pièce...</div><div class="ttdef"><b>Definition:</b> <a href="_piece_8h_source.html#l00028">Piece.h:28</a></div></div>
</div><!-- fragment -->
<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_testeur_piece_8cpp_a12e1f03f80d437f48ba480c79bf70934_cgraph.png" border="0" usemap="#_testeur_piece_8cpp_a12e1f03f80d437f48ba480c79bf70934_cgraph" alt=""/></div>
<map name="_testeur_piece_8cpp_a12e1f03f80d437f48ba480c79bf70934_cgraph" id="_testeur_piece_8cpp_a12e1f03f80d437f48ba480c79bf70934_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a2f512e5ea5b9540b069c33eadea8aeaa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TEST </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_p1_1_1_piece.html">Piece</a>&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PieceConstructeurCopie_casNormal_LesDeuxPiecesOntLaMemeValeurParcourue&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Définition à la ligne <a class="el" href="_testeur_piece_8cpp_source.html#l00057">57</a> du fichier <a class="el" href="_testeur_piece_8cpp_source.html">TesteurPiece.cpp</a>.</p>

<p>Références <a class="el" href="_piece_8cpp_source.html#l00090">TP1::Piece::getParcourue()</a>, et <a class="el" href="_piece_8cpp_source.html#l00080">TP1::Piece::setParcourue()</a>.</p>
<div class="fragment"><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;{</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <a class="code" href="class_t_p1_1_1_piece.html">Piece</a> p1(<span class="stringliteral">&quot;piece1&quot;</span>);</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    p1.setParcourue(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <a class="code" href="class_t_p1_1_1_piece.html">Piece</a> p2(p1);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    ASSERT_EQ(p1.getParcourue(), p2.getParcourue());</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;}</div>
<div class="ttc" id="class_t_p1_1_1_piece_html"><div class="ttname"><a href="class_t_p1_1_1_piece.html">TP1::Piece</a></div><div class="ttdoc">Piece dans un labyrinthe ayant un nom unique et une liste de portes qui partent de cette pièce...</div><div class="ttdef"><b>Definition:</b> <a href="_piece_8h_source.html#l00028">Piece.h:28</a></div></div>
</div><!-- fragment -->
<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_testeur_piece_8cpp_a2f512e5ea5b9540b069c33eadea8aeaa_cgraph.png" border="0" usemap="#_testeur_piece_8cpp_a2f512e5ea5b9540b069c33eadea8aeaa_cgraph" alt=""/></div>
<map name="_testeur_piece_8cpp_a2f512e5ea5b9540b069c33eadea8aeaa_cgraph" id="_testeur_piece_8cpp_a2f512e5ea5b9540b069c33eadea8aeaa_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a92e7dc0b7070d31ac4907709523b74f9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TEST </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_t_p1_1_1_piece.html">Piece</a>&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ajoutePorte_ajouterUneSeulePorte_LaPorteEstDansLaListeDePortes&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Définition à la ligne <a class="el" href="_testeur_piece_8cpp_source.html#l00067">67</a> du fichier <a class="el" href="_testeur_piece_8cpp_source.html">TesteurPiece.cpp</a>.</p>

<p>Références <a class="el" href="_piece_8cpp_source.html#l00110">TP1::Piece::ajoutePorte()</a>, <a class="el" href="_liste_portes_8cpp_source.html#l00037">TP1::ListePortes::estVideListePortes()</a>, <a class="el" href="_piece_8cpp_source.html#l00100">TP1::Piece::getPortes()</a>, et <a class="el" href="_liste_portes_8cpp_source.html#l00028">TP1::ListePortes::tailleListePortes()</a>.</p>
<div class="fragment"><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;{</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <a class="code" href="class_t_p1_1_1_piece.html">Piece</a> p1;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <a class="code" href="class_t_p1_1_1_porte.html">Porte</a> porte;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    ASSERT_TRUE(p1.<a class="code" href="class_t_p1_1_1_piece.html#a0f52ef56da9c4af0cac0ad471aa61932">getPortes</a>().<a class="code" href="class_t_p1_1_1_liste_portes.html#a5e761686cedbf75685ac04850d73a588">estVideListePortes</a>());</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    p1.<a class="code" href="class_t_p1_1_1_piece.html#a8d33c34dd4e3c4ea3f6f02d9a217d256">ajoutePorte</a>(porte);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    ASSERT_EQ(1, p1.<a class="code" href="class_t_p1_1_1_piece.html#a0f52ef56da9c4af0cac0ad471aa61932">getPortes</a>().<a class="code" href="class_t_p1_1_1_liste_portes.html#aea2f8a070489b7379359652f947acd2c">tailleListePortes</a>());</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;}</div>
<div class="ttc" id="class_t_p1_1_1_liste_portes_html_aea2f8a070489b7379359652f947acd2c"><div class="ttname"><a href="class_t_p1_1_1_liste_portes.html#aea2f8a070489b7379359652f947acd2c">TP1::ListePortes::tailleListePortes</a></div><div class="ttdeci">int tailleListePortes() const </div><div class="ttdoc">méthode qui retourne la taille de la listePortes </div><div class="ttdef"><b>Definition:</b> <a href="_liste_portes_8cpp_source.html#l00028">ListePortes.cpp:28</a></div></div>
<div class="ttc" id="class_t_p1_1_1_porte_html"><div class="ttname"><a href="class_t_p1_1_1_porte.html">TP1::Porte</a></div><div class="ttdoc">classe représentant une porte colorée dans un labyrinthe. </div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00036">Porte.h:36</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html_a0f52ef56da9c4af0cac0ad471aa61932"><div class="ttname"><a href="class_t_p1_1_1_piece.html#a0f52ef56da9c4af0cac0ad471aa61932">TP1::Piece::getPortes</a></div><div class="ttdeci">const ListePortes &amp; getPortes() const </div><div class="ttdoc">Accéder à la liste des portes qui partent de la pièce. </div><div class="ttdef"><b>Definition:</b> <a href="_piece_8cpp_source.html#l00100">Piece.cpp:100</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html"><div class="ttname"><a href="class_t_p1_1_1_piece.html">TP1::Piece</a></div><div class="ttdoc">Piece dans un labyrinthe ayant un nom unique et une liste de portes qui partent de cette pièce...</div><div class="ttdef"><b>Definition:</b> <a href="_piece_8h_source.html#l00028">Piece.h:28</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html_a8d33c34dd4e3c4ea3f6f02d9a217d256"><div class="ttname"><a href="class_t_p1_1_1_piece.html#a8d33c34dd4e3c4ea3f6f02d9a217d256">TP1::Piece::ajoutePorte</a></div><div class="ttdeci">void ajoutePorte(Porte &amp;p)</div><div class="ttdoc">Permet d&#39;ajouter une porte à la liste de portes de cette pièce. </div><div class="ttdef"><b>Definition:</b> <a href="_piece_8cpp_source.html#l00110">Piece.cpp:110</a></div></div>
<div class="ttc" id="class_t_p1_1_1_liste_portes_html_a5e761686cedbf75685ac04850d73a588"><div class="ttname"><a href="class_t_p1_1_1_liste_portes.html#a5e761686cedbf75685ac04850d73a588">TP1::ListePortes::estVideListePortes</a></div><div class="ttdeci">bool estVideListePortes() const </div><div class="ttdoc">retourne vrai si la listePortes est vide, faux sinon </div><div class="ttdef"><b>Definition:</b> <a href="_liste_portes_8cpp_source.html#l00037">ListePortes.cpp:37</a></div></div>
</div><!-- fragment -->
<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_testeur_piece_8cpp_a92e7dc0b7070d31ac4907709523b74f9_cgraph.png" border="0" usemap="#_testeur_piece_8cpp_a92e7dc0b7070d31ac4907709523b74f9_cgraph" alt=""/></div>
<map name="_testeur_piece_8cpp_a92e7dc0b7070d31ac4907709523b74f9_cgraph" id="_testeur_piece_8cpp_a92e7dc0b7070d31ac4907709523b74f9_cgraph">
</map>
</div>
</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="_testeur_piece_8cpp.html">TesteurPiece.cpp</a></li>
    <li class="footer">Généré le Dimanche 8 Juin 2014 19:37:05 pour TP1-Algo par
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
